package com.mrjy.common.qtz;

import java.util.Map;

import javax.annotation.Resource;

import org.apache.log4j.Logger;

import com.mrjy.video.bo.IVideoVipBo;
/**
 * 视频会员状态检查 任务
 *
 */
public class VideoVipStatusCheckJob{
	
	@Resource
	private IVideoVipBo videoVipBo;
	
    private static Logger logger = Logger.getLogger(VideoVipStatusCheckJob.class);
    /**
     * @Description: 任务执行获取 token
     * @param    
     */
    @SuppressWarnings("unchecked")
	public void doJob() {
    	
		Map<String , Object> map = (Map<String, Object>) videoVipBo.txCheckVideoVipExpired();
    	logger.debug("定时器定期检查会员状态 ：=================================>" +map.get("err_msg"));
    	/**
    	 * 检查距离会员过期还有7天的记录
    	 */
    	map = (Map<String, Object>) videoVipBo.checkVipVipWillExpire(7);
    	logger.debug("定时器定期检查会员状态 ：=================================>" + map.get("err_msg"));
    	
    	
    				
    }

}